<template>
  <div v-if="route.query.orderId">
    <OrderDetail />
  </div>
  <div v-else>
    <OrderList />
  </div>
</template>
<script lang="ts" name="Order" setup>
import { useRoute } from "vue-router";
import OrderDetail from "@/pages/user/order/orderDetail.vue";
import OrderList from "@/pages/user/order/orderList.vue";

let route = useRoute();
</script>

<style lang="scss" scoped></style>
